<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">Ext.ns('Helper.HTML5');

<span id='Helper-HTML5-Canvas'>/**
</span> * 
 * @class Helper.HTML5.Canvas 来自于HTML5标准的Canvas
 */
Ext.extend(Helper.HTML5.Canvas, Ext.emptyFn,
{
<span id='Helper-HTML5-Canvas-property-width'>	/**
</span>	 * @property {Number} 宽度
	 */
	width: null,
<span id='Helper-HTML5-Canvas-property-height'>	/**
</span>	 * @property {Number} 高度
	 */
	height: null,
<span id='Helper-HTML5-Canvas-method-getContext'>	/**
</span>	 * @method 获得Context对象
	 * @param {String} type 类型，目前只有2d
	 * @return {Helper.HTML5.CanvasRenderingContext2D} 返回与该canvas元素相关的绘图环境对象。每个canvas元素均有一个这样的环境对象，而且每个环境对象均与一个canvas元素想关联
	 */
	getContext: function( type )
	{
	},
<span id='Helper-HTML5-Canvas-method-toDataURL'>	/**
</span>	 * @method 取得canvas的图片格式，可以作为img的src属性
	 * @param {String} [type=image/png] 图片类型(image/jpeg || image/png)
	 * @param {Number} quality 图片的显示质量，必须为(0~1.0之间的double值)
	 */
	toDataURL: function( type, quality )
	{
	},
<span id='Helper-HTML5-Canvas-method-toBlob'>	/**
</span>	 * @method 取得一个用于表示canvas元素图像文件的blob
	 * @param {Function} callback 回调函数，浏览器会以一个只想blob的引用为参数，调用该函数
	 * @param {String} type 图片类型(image/jpeg || image/png)，默认为image/png
	 * @param {Object} args 将来备用参数，可以传入quality，详情请看toDataURL方法
	 */
	toBlob: function( callback, type, args )
	{
	}
});</pre>
</body>
</html>
